package com.qidianit.mes.sys.pojo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @ Description:
 * @ Author: 戴着假发的程序员
 * @ Date: 2025/9/22 - 15:57
 */
public class MESPage<E> extends Page<E> {
    private List<E> list;

    public List<E> getList() {
        return list;
    }

    public void setList(List<E> list) {
        this.list = list;
    }

    public MESPage() {
    }

    public MESPage(long current, long size) {
        super(current, size);
    }

    public MESPage(long current, long size, long total) {
        super(current, size, total);
    }

    public MESPage(long current, long size, boolean searchCount) {
        super(current, size, searchCount);
    }

    public MESPage(long current, long size, long total, boolean searchCount) {
        super(current, size, total, searchCount);
    }

    @Override
    public Page<E> setRecords(List<E> records) {
        this.list = records;
        return super.setRecords(records);
    }

    public MESPage(Page<E> page){
        this.setRecords(page.getRecords());
        this.setTotal(page.getTotal());
    }

}
